package cn.edu.scau.dormitory_management_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.sql.Timestamp;

/**
 * @author djc
 * @date 2021/8/6
 * @time 10:02
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_dorm_record")
public class DormRecord {
    @TableId(type = IdType.AUTO)
    private Integer recordId;

    /**
     * 学生名字
     */
    private String stuName;

    /**
     * 学号
     */
    private String stuId;

    /**
     * 执行操作
     * 0：入宿、1：调宿、2：退宿
     */
    private Integer operation;

    /**
     * 操作时间
     */
    private Timestamp opTime;
}
